package com.dahua.aopconfig;

import com.dahua.aop.UserService;
import com.dahua.aopconfig.CglibAppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author chen_MingLiang
 * @version 1.0
 * @date 2020/1/29 19:11
 */
public class TestAop {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(CglibAppConfig.class);
		UserService bean = ac.getBean(UserService.class);
		bean.testAop();
		bean.testAop("ss");
	}
}
